﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    EnableEventValidation="false" CodeBehind="Update.aspx.cs" Inherits="Wicresoft.RDW.LabManage.Update" %>

<%@ Register Src="../UserControls/LocationLabControl.ascx" TagName="LocationLabControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .divForm
        {
            width: 480px;
            margin: 0 auto;
        }
        #ll li label
        {
            width: 120px !important;
            float: left !important;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#<%=btnSubmit.ClientID %>").click(checkAllTextValid);
            $("#<%=btnCancelClose.ClientID %>").click(checkAllTextValid);
        });     
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2><%=Resources.NameResource.Lab_Manage%></h2>
    </div>
    <div class="line_gray">
    </div>
    <br />
    <asp:PlaceHolder ID="phClose" runat="server" Visible="true">
        <div class="divForm">
            <div>
                <uc1:LocationLabControl ID="ucLocationLab" EnableValidation="true" Vertical="false"
                    Enabled="true" runat="server" />
            </div>
            <div>
                <label>
                    <%=Resources.ManageResource.mgr_lblStartTime%></label>
                <asp:TextBox ID="txtSartDate" runat="server" class="requestDate"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtSartDate" runat="server" ErrorMessage="*" Display="Dynamic"
                    ForeColor="Red" ControlToValidate="txtSartDate"></asp:RequiredFieldValidator>
                <asp:Label ID="lblStartTimeError" runat="server" ForeColor="Red" Visible="false"></asp:Label>
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.ManageResource.mgr_lblEndTime%></label>
                <asp:TextBox ID="txtEndDate" runat="server" class="requestDate"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtEndDate" runat="server" ErrorMessage="*" Display="Dynamic"
                    ForeColor="Red" ControlToValidate="txtEndDate"></asp:RequiredFieldValidator>
                <asp:Label ID="lblEndTimeError" runat="server" ForeColor="Red" Visible="false"></asp:Label>
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.ManageResource.mgr_lblCloseReason%></label>
                <asp:DropDownList ID="ddlReason" runat="server" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlReason_SelectedIndexChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
                <asp:Label ID="lblReasonError" runat="server" ForeColor="Red" Visible="false"></asp:Label>
            </div>
            <div id="divOtherReason" runat="server" visible="false">
                <br />
                <label>
                    <%=Resources.ManageResource.mgr_lblOtherReason%></label>
                <asp:TextBox ID="txtOtherReason" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revtxtOtherReason" ControlToValidate="txtOtherReason"
                    ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,100}$" runat="server" />
                <asp:Label ID="lblOtherReasonError" ForeColor="Red" runat="server"></asp:Label>
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.NameResource.LabCloseSchedule_Solution_CN%></label>
                <asp:TextBox ID="txtSolutionCN" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtSolutionCN" runat="server" ErrorMessage="*"
                    Display="Dynamic" ForeColor="Red" ControlToValidate="txtSolutionCN"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revtxtSolutionCN" ControlToValidate="txtSolutionCN"
                    ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,200}$" runat="server" />
            </div>
            <br />
            <div>
                <label>
                    <%=Resources.NameResource.LabCloseSchedule_Solution_EN%></label>
                <asp:TextBox ID="txtSolutionEN" runat="server" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvtxtSolutionEN" runat="server" ErrorMessage="*"
                    Display="Dynamic" ForeColor="Red" ControlToValidate="txtSolutionEN"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revtxtSolutionEN" ControlToValidate="txtSolutionEN"
                    ForeColor="Red" Text="*" ValidationExpression="^[\s\S]{0,200}$" runat="server" />
            </div>
            <br />
            <div class="sqbtnPane">
                <p class="sqbtn">
                    <asp:LinkButton ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" /></p>
                <p class="sqbtn">
                    <asp:LinkButton ID="btnCancelClose" runat="server" OnClick="btnCancel_Click" CausesValidation="false" /></p>
            </div>
        </div>
        <div id="divComments" runat="server" visible="false">
            <div>
                <asp:Label ID="lblComments" runat="server" ForeColor="Red"></asp:Label>
            </div>
        </div>
    </asp:PlaceHolder>
    <script type="text/javascript">
        $(function () {
            $(".requestDate").live("focus", function () {
                $(this).datepicker({ dateFormat: 'yy-mm-dd' });
                $(this).attr("readonly", "readonly");
            });
        });
    </script>
</asp:Content>
